<?php

namespace App\Lib\PHPExcel\ManuOrder;

use App\Lib\PHPExcel\ExcelHandle;

class Msg extends ExcelHandle
{
    /*
     * l联系方式
     * */
    public function arrange($origin_arr)
    {

        $arr = [
            0 => [
                 '姓名', '电话', '留言' , '平台'
            ]
        ];
        $i = 1;
        foreach ($origin_arr as $data) {
            $arr[$i]['姓名'] = $data['user'];
            $arr[$i]['电话'] = $data['phone'];
            $arr[$i]['留言'] = $data['content'];
            $arr[$i]['平台'] = $data['platform'];

            $i++;
        }

        return $arr;
    }


}